package com.itheima.exer.homework.hw1009;

import java.io.*;

public class StudentSerialOne {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        //ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(new File("exercises\\c.txt")));
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File("exercises\\c.txt")));
        /*Student stu = new Student("张三",23);
        oos.writeObject(stu);
        oos.close();*/
        Student o =(Student) ois.readObject();
        System.out.println(o);
        ois.close();
    }
}
